/*
 * Copyright 2018 JessYan
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jess.arms.base;

/**
 * ================================================
 * CommonSDK 的 Constants 可以定义公用的常量, 比如关于业务的常量或者正则表达式, 每个组件的 Constants 可以定义组件自己的私有常量
 * <p>
 * Created by JessYan on 30/03/2018 17:32
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * ================================================
 */
public class BaseConstants extends ArmsBaseConstants {
    //电话号码正则
    public static final String TOKEN = "token";
    public static final String IS_LOGIN = "is_login"; //是否已经登录
    public static final String UID = "uid";
    public static final String USERNAME = "username";
    public static final String PASSWORD = "password";
    public static final String IS_STAFF = "is_staff";
    public static final String SHOP_ID = "shop_id";
    public static final boolean AUTO_LOGIN = true;
    public static final String USER_TYPE = "user_type";
    public static final String JI_ZHU_MI_MA = "ji_zhu_mi_ma";
    public static final String SHE_ZHI_IP = "she_zhi_ip";
    public static final String SHE_ZHI_PORT = "she_zhi_port";
    public static final String SCAN_RESULT_SUB = "scan_result_sub";


    public static final String NAME_SPACE = "http://dyjapp.org/";
    public static final String SHE_ZHI_IP_VALUE = "dezhou.xywuhe.com";
    //    public static final String SHE_ZHI_PORT_VALUE = "6677";
    public static final String SHE_ZHI_PORT_VALUE = "6699";
    public static final String BASE_URL = "http://" + SHE_ZHI_IP_VALUE + ":" + SHE_ZHI_PORT_VALUE + "/StoreService.asmx";
    public static final String IS_CHU_KU = "is_chu_ku"; //是否出库
    public static final String IS_RU_KU = "is_ru_ku"; //是否入库
    public static final int REQUEST_CODE_ER_WEI_MA = 101;
    public static final int SERVICE_ID = 205291;
    public static final String COMPANY = "company";
    public static final String DISPLAY_NAME = "display_name";
    public static final String MOBILE_PHONE = "mobile_phone";
    public static final String YUN_SHU_JIE_SHU = "yun_shu_jie_shu";
    public static final String HTTP_URL = "httpurl";
    public static final String IS_AUTO = "isauto";
    public static final String SID = "sid";
    public static final String SCAN_RESULT = "scan_result";
    public static final String SCAN_REQUEST_CODE = "SCAN_REQUEST_CODE";
    public static final String IS_THE_FIRST = "IS_THE_FIRST";
    public static final String ROLE_ID = "role_id";
    public static final String ROLE_NAME = "role_name";
    public static final String BATCH_ID = "batch_id";
    public final static int RESULT_CLOSE = 0;
    public static final String ER_WEI_MA_TYPE = "er_wei_ma_type";
    public static final String IS_SET = "is_set";
    public static final String API_USER_NAME = "api_user_name";
    public static final String API_PWD = "api_pwd";
    public static final String NICK_NAME = "nick_name";
    public static final String TAB_3_RONG_HE_QU_ADDRESS = "tab3RongHeQuAddress"; //更新tab3 融合区地址信息
    public static final String TAB_3_RONG_HE_QU_OR_QI_TA = "tab3RongHeQuOrQiTaAddress"; //更新tab3 融合区或其他地址信息
    public static final String ADDRESS_ITEM_TAG = "addressItemTag";//首页标记选择地址item，是否可以点击item
    public static final String TAB_3_ADDRESS = "tab3Address";//更新tab3其他地区地址信息
    public static final String MATERIAL_LOCAL = "materialLocal";//
    public static final String ADDRESS_LIST = "addressList";//地址添加成功、修改成功后重新获取地址列表
    public static final String TAB_1_ADDRESS = "tab1Address";//更新tab1其他地区地址信息
    public static final String SET_CURRENT_ITEM = "setCurrentItem";
    public static final String TAB_2_EMGTRANSFER_LIST = "tab2EmgtransferList";
    public static final String SET_IMG_CART_NUM = "setImgCartNum";
    public static final int MAIN_CURRENT_ONE = 0;
    public static final int MAIN_CURRENT_TWO = 1;
    public static final int MAIN_CURRENT_THREE = 2;
    public static final int MAIN_CURRENT_FOUR = 3;
    public static final String LAT = "lat";
    public static final String LNG = "lng";


    public enum LoginRole {
        CANG_GUAN_YUAN("仓管员"), CAI_LIAO_YUAN("材料员"), SHEN_HE_REN("申请人"), LING_DAO("领导"), PAN_DIAN_YUAN("盘点员"),
        WU_LIAO_YUAN("物料员"), SHEN_HE_REN1("审核人"), SHI_GONG_JIAN_LI("施工监理"), GONG_CHENG_SHEN_JI_ZHUAN_GONG("工程审计专工"),
        ZHI_LIANG_GUAN_LI_YUAN("质量管理员"), ZHI_LIANG_JIA_CHA_ZHUAN_GONG("质量检查专工"), BAO_FEI_HUI_SHOU_ZHUAN_GONG("报废回收专工"),
        CANG_KU_BAO_JING_ZHUAN_GONG("仓库警报专工"), ZHI_JIAN_QU_YANG_YUAN("质检取样员"), ZHI_JIAN_FENG_QIAN_YUAN("质检封签员"),
        ZHI_JIAN_SHOU_YANG_YUAN("质检收样员"), ZHI_JIAN_JIAN_CE_YUAN("质检检测员"), QU_YANG_FENG_QIAN_YUAN("取样封签员"),
        PEI_SONG_BAN_ZHANG("配送申请人"), PEI_SONG_GUAN_LI_YUAN("配送审核人"), CANG_KU_MEN_JIN_ZHUAN_GONG("仓库门禁专工"),
        SI_JI("司机"), JIE_SHOU_REN("接收人");
        private String value;

        private LoginRole(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }


    }

    public interface CangKuLeiXing {
        String CANG_KU_YI_BAN = "0";
        String CANG_KU_ZHI_NENG = "1";

    }

}
